package com.shop.service;

import com.shop.entity.Product;
import com.shop.entity.ProductAttribute;
import com.shop.entity.Store;

import java.util.List;
import java.util.Map;

public interface ProductService {

    List findAllProduct(Long storeId);

    int createProduct(Product product);

    int createProductAttribute(ProductAttribute productAttribute,Long UserId);

    boolean deleteProduct(Long productId);

    boolean deleteProductAttribute(Long attributeId);

    int updateProduct(Product product,Long UserId);

    int updateProductAttribute(ProductAttribute productAttribute);

    List searchProduct(String searchInfo);

    Map searchProductInfo(Long productId);
}
